home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 1.5 KB | 80 lines | [TEXT/MPS ] |
- //
- // File: SLMemSin.idl
- //
- // Contains: Interface for the memory sink class
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
-
- #ifndef SLMEMSIN_IDL
- #define SLMEMSIN_IDL
-
- #ifndef SLRANSIN_IDL
- #include "SLRanSin.idl"
- #endif
-
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface FW_OMemorySink;
-
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface FW_ORandomAccessSink;
-
-
- //========================================================================================
- // FW_OMemorySink
- //========================================================================================
-
- interface FW_OMemorySink : FW_ORandomAccessSink
- {
- void InitFromBuffer(in void* buffer, in long capacity, in long length);
-
- #ifdef __SOMIDL__
- implementation
- {
- functionprefix = "FW_OMemorySink__";
-
- override:
- somInit,
- somUninit,
-
- Read,
- GetWritableBytes,
- Write,
- GetLength,
- SetLength,
- GetPosition,
- SetPosition;
-
- releaseorder:
- InitFromBuffer;
-
- majorversion = 1;
- minorversion = 0;
-
- passthru C_xh =
- "";
-
- passthru C_xih =
- "";
-
- #ifdef __PRIVATE__
- char* fBuffer;
- long fCapacity;
- long fLength;
- long fPosition;
- #endif
- };
- #endif
- };
-
-
- #endif
-